import request from '@/utils/request'

// 查询凭证项列表
export function listFinRecordVoucherItem(query) {
  return request({
    url: '/project/FinRecordVoucherItem/list',
    method: 'get',
    params: query
  })
}

// 查询凭证项详细
export function getFinRecordVoucherItem(id) {
  return request({
    url: '/project/FinRecordVoucherItem/' + id,
    method: 'get'
  })
}

// 新增凭证项
export function addFinRecordVoucherItem(data) {
  return request({
    url: '/project/FinRecordVoucherItem',
    method: 'post',
    data: data
  })
}

// 修改凭证项
export function updateFinRecordVoucherItem(data) {
  return request({
    url: '/project/FinRecordVoucherItem',
    method: 'put',
    data: data
  })
}

// 删除凭证项
export function delFinRecordVoucherItem(id) {
  return request({
    url: '/project/FinRecordVoucherItem/' + id,
    method: 'delete'
  })
}
